package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.base.BaseEntity;
import java.util.Date;

/**
 * 文件存储表 sys_storage
 * 
 * @author lzy
 * @date 2019-03-18
 */
public class SysStorage extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/**  */
	private Integer id;
	/** 文件的唯一索引 */
	private String key;
	/** 文件名 */
	private String name;
	/** 文件类型 */
	private String type;
	/** 文件大小 */
	private Integer size;
	/** 最后更新时间 */
	private Date modified;
	/** 文件访问链接 */
	private String url;
	/** 创建时间 */
	private Date addTime;
	/** 逻辑删除 */
	private Integer deleted;
	/** 乐观锁字段 */
	private Integer version;

	public void setId(Integer id) 
	{
		this.id = id;
	}

	public Integer getId() 
	{
		return id;
	}
	public void setKey(String key) 
	{
		this.key = key;
	}

	public String getKey() 
	{
		return key;
	}
	public void setName(String name) 
	{
		this.name = name;
	}

	public String getName() 
	{
		return name;
	}
	public void setType(String type) 
	{
		this.type = type;
	}

	public String getType() 
	{
		return type;
	}
	public void setSize(Integer size) 
	{
		this.size = size;
	}

	public Integer getSize() 
	{
		return size;
	}
	public void setModified(Date modified) 
	{
		this.modified = modified;
	}

	public Date getModified() 
	{
		return modified;
	}
	public void setUrl(String url) 
	{
		this.url = url;
	}

	public String getUrl() 
	{
		return url;
	}
	public void setAddTime(Date addTime) 
	{
		this.addTime = addTime;
	}

	public Date getAddTime() 
	{
		return addTime;
	}
	public void setDeleted(Integer deleted) 
	{
		this.deleted = deleted;
	}

	public Integer getDeleted() 
	{
		return deleted;
	}
	public void setVersion(Integer version) 
	{
		this.version = version;
	}

	public Integer getVersion() 
	{
		return version;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("key", getKey())
            .append("name", getName())
            .append("type", getType())
            .append("size", getSize())
            .append("modified", getModified())
            .append("url", getUrl())
            .append("addTime", getAddTime())
            .append("deleted", getDeleted())
            .append("version", getVersion())
            .toString();
    }
}
